<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">修改密码</h1>
</div>
<div class="wrapper-md">
	<div class="row">

		<div class="panel panel-default">
			<div class="panel-heading font-bold"></div>
			<div class="panel-body">
				<form name="form" class="form-horizontal ng-pristine ng-valid ng-valid-required">
					
					<div class="form-group">
						<label class="col-lg-3 control-label">旧密码:</label>
						<div class="col-lg-5">
							<input type="password" class="form-control" ng-model="obj.oldpassword" required="">
						</div>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">新密码:</label>
						<div class="col-lg-5">
							<input type="password" class="form-control" ng-model="obj.newpassword" maxlength="50" 
							minlength="3" ng-pattern="/^[a-zA-Z0-9]{3,20}$/" name="newpassword" required="" 
							popover="密码长度在3-20之间" popover-trigger="mouseenter">
						 </div>
						<label class="control-label" ng-show="form.newpassword.$dirty" style="color:red">
							<span ng-show="form.newpassword.$invalid && !form.newpassword.$error.required" class="ng-hide">密码长度在3-20之间!</span>
						</label>
					</div>
					<div class="form-group">
						<label class="col-lg-3 control-label">确认密码:</label>
						<div class="col-lg-5">
							<input type="password" class="form-control" ng-model="obj.repassword" name="repassword" 
							ui-validate=" '$value==obj.newpassword' " ui-validate-watch=" 'obj.newpassword' " required="">
						</div>
						<label class="control-label" ng-show="form.repassword.$dirty" style="color:red">
							<span ng-show="form.repassword.$error.validator && !form.repassword.$error.required" class="ng-hide">两次密码不相同!</span>
						</label>
					</div>
					
					<div class="col-lg-3"></div>
					<div class="col-lg-4">
						<button class="btn btn-primary btn-rounded" ng-click="modifypwd()">修改密码</button>
					</div>

				</form>

			</div>
		</div>

	</div>
</div>


